package com.yule.system.home;

import com.yule.system.dao.SystemDutyDao;
import com.yule.system.model.SystemDuty;
import com.yule.system.model.SystemDutyExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemDutyHome {

    @Autowired
    private SystemDutyDao systemDutyDao;

    public SystemDuty findOne(int id){
        return systemDutyDao.selectByPrimaryKey(id);
    }

    public List<SystemDuty> findList(SystemDutyExample systemDutyExample){
        return systemDutyDao.selectByExample(systemDutyExample);
    }
}
